package com.atde._05_behavioral_design_patterns.memento.game;


/**
 * @BelongsProject: hsp_java_design_mode
 * @BelongsPackage: com.atde._05_behavioral_design_patterns.memento.game
 * @Author: Del
 * @CreateTime: 2025-06-30  02:42
 * @Description: 备忘录模式应用 --- 恢复角色状态实例
 * @Version: 1.0
 */
public class Memento {
    // 攻击力
    private int vit;
    // 防御力
    private int def;

    public Memento(int vit, int def) {
        this.vit = vit;
        this.def = def;
    }

    public int getVit() {
        return vit;
    }

    public void setVit(int vit) {
        this.vit = vit;
    }

    public int getDef() {
        return def;
    }

    public void setDef(int def) {
        this.def = def;
    }
}
